package com.demo.day528;

import java.util.Objects;

/**
@Auther: MFM
@Date: 2021/5/28 - 05 - 28 - 19:06
@version: 1.0
*/

public class User {


    private String UserID;
    private String PassWord;
    private int Money;

    public User() {
    }

    public User(String userID, String passWord, int money) {
        UserID = userID;
        PassWord = passWord;
        Money = money;
    }
    public String getUserID() {
        return UserID;
    }

    public void setUserID(String userID) {
        UserID = userID;
    }

    public String getPassWord() {
        return PassWord;
    }

    public void setPassWord(String passWord) {
        PassWord = passWord;
    }

    public int getMoney() {
        return Money;
    }

    public void setMoney(int money) {
        Money = money;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        User user = (User) o;
        return UserID.equals(user.UserID) && PassWord.equals(user.PassWord);
    }

    @Override
    public int hashCode() {
        return Objects.hash(UserID, PassWord);
    }
}
